// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.

import java.util.Scanner;

public class one {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double height = 0, finace = 0;
        Boolean handsome = false;
        height = scanner.nextDouble();
        finace = scanner.nextDouble();
        handsome = scanner.nextBoolean();

        if (height > 180 && finace > 1000000 && handsome == true) {
            System.out.println("嫁了");
        }
        else if (height > 180 || finace > 1000000 || handsome == true) {
            System.out.println("还行");

        }
        else {
            System.out.println("算了");
        }


    }
}